package com.lyvust;

import javax.swing.*;

/**
 * Description:
 * date: 2021-5-26 21:01
 *
 * @author Guo_guo
 * @since JDK 1.8
 */
public class Lucky extends JFrame {
    public Lucky() {
        this.setTitle("抽奖小程序");
        this.setSize(300, 200);
        this.setResizable(false);
        this.setLocationRelativeTo(null);
        this.setVisible(true);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

    public void init() {
        JButton jbStart = new JButton("开始");
        JButton jbEnd = new JButton("停止");
        jbStart.setBounds(30, 100, 90, 35);
        jbEnd.setBounds(160, 100, 90, 35);

        this.add(jbStart);
        this.add(jbEnd);
    }
    public static void main(String[] args) {
        new Lucky();
    }
}
